package com.sfac.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

import java.net.InetAddress;

@SpringBootApplication
@ServletComponentScan
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        try {
            String localhost = InetAddress.getLocalHost().getHostAddress();
            Runtime.getRuntime().exec("cmd   /c   start   http://"+localhost+"/login");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
